﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TMHuy.config
{
    public class Route
    {
        public String fromName;
        public String fromId;
        public String toName;
        public String toId;
        public bool fromObject;
        public bool unitInPercentage;
        public int value;
        public bool lumber = true;
        public bool clay = true;
        public bool iron = true;
        public bool crop = true;

        public string getConditionString()
        {
            return (fromObject ? "Source resource >" : "Destination resource <") + " " + value + (unitInPercentage ? "%" : "");
        }

        public string getResourceString()
        {
            return (lumber == true ? "Lumber " : "") + (clay == true ? "Clay " : "") + (iron == true ? "Iron " : "") + (crop == true ? "Crop " : "");
        }
    }
}
